package springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import springboot.config.DBConfig1;
import springboot.config.DBConfig2;
@ComponentScan(basePackages={"springboot.config","springboot.controller","springboot.datasource","springboot.service","springboot.aop","springboot.scheduled"})
@EnableAutoConfiguration

@MapperScan(basePackages= {"springboot.dao"})
@EnableConfigurationProperties(value= {DBConfig1.class,DBConfig2.class})
@EnableCaching
//@EnableScheduling
@EnableAsync
public class App {
	public static void main(String[] args) {
		
		SpringApplication.run(App.class, args);
	}

}
